Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: added abstractor.CallGadget #29

Merged
merged 1 commit into from
Aug 31, 2023
Merged

Conversation

Eagle941
Copy link
Contributor

Summary

This PR adds a concretizer for Gadgets so they can be plugged in existing Gnark circuits

Details

Before

x3 := Power(api, circuit.X, 3)

After

x3 := abstractor.CallGadget(api, PowerGadget{circuit.X, 3})[0]

Checklist

  • Documentation has been updated if necessary.

@Eagle941 Eagle941 requested a review from a team as a code owner August 30, 2023 21:30
@Eagle941 Eagle941 merged commit 7356d0a into main Aug 31, 2023
@Eagle941 Eagle941 deleted the add-abstractorcallgadget branch August 31, 2023 08:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add abstractor.CallGadget to be able to gadgetize circuits incrementally
2 participants